<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">

        <ui:define name="bodyname">
            <h:outputText value="#{msg.trocarSenha}"/>
        </ui:define>
        <ui:define name="body">          
            <h:form>
                <h:panelGrid columns="3">
                    <h:outputLabel value="#{msg.senha}" for="senha" />
                    <h:inputSecret id="senha" value="#{ControladorUsuario.us.senha}"
                                   required="true" requiredMessage="#{msg.campoObrigatorio}"
                                   validatorMessage="#{msg.msg2}">
                        <f:validateLength minimum="6" maximum="30" />
                    </h:inputSecret>
                    <h:message style="color: red; text-decoration: overline"
                               id="senhaErro" for="senha" />

                    <h:outputLabel value="#{msg.senha2}" for="senha2" />
                    <h:inputSecret id="senha2" value="#{ControladorUsuario.us.senha2}"
                                   required="true" requiredMessage="#{msg.campoObrigatorio}"
                                   validatorMessage="#{msg.msg2}">
                        <f:validateLength minimum="6" maximum="30" />
                    </h:inputSecret>
                    <h:message style="color: red; text-decoration: overline"
                               id="senha2Erro" for="senha2" />
                </h:panelGrid>
                <p>
                    <h:commandButton id="change" value="#{msg.proximo}"
                                     action="#{ControladorUsuario.editar}" styleClass="button" />
                </p>
                <p>
                    <h:messages styleClass="mensagemIformacao" />
                </p>
            </h:form>
        </ui:define>
    </ui:composition>
</html>